home *** CD-ROM | disk | FTP | other *** search
/ Dragon Blade - Wrath of Fire (USA) (Press Kit) / Dragon Blade - Wrath of Fire (USA) (Press Kit).bin / pc / main.swf / scripts / frame_116 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  5.9 KB  |  133 lines

  1. function brandEnabler(loaderName)
  2. {
  3.    navMovList_mc.buttons_mc[loaderName].hitVal = 1;
  4.    navMovList_mc.buttons_mc[loaderName].hit_mc.enabled = false;
  5.    navMovList_mc.buttons_mc[prevName].hit_mc.enabled = true;
  6.    navMovList_mc.buttons_mc[prevName].hit_mc.colorTo(0,0.3,"easeOutSine");
  7.    navMovList_mc.buttons_mc[prevName].name_txt.colorTo(16770048,0.3,"easeOutSine");
  8.    navMovList_mc.buttons_mc[prevName].arrow_txt.colorTo(16777215,0.3,"easeOutSine");
  9.    navMovList_mc.buttons_mc[prevName].loadBar_mc.tween("_width",0,0.3,"easeInSine");
  10.    prevName = loaderName;
  11. }
  12. function SUBEnabler(SloaderName)
  13. {
  14.    navMovDown_mc.buttons_mc[SloaderName].hitVal = 1;
  15.    navMovDown_mc.buttons_mc[SloaderName].hit_mc.enabled = false;
  16.    navMovDown_mc.buttons_mc[SprevName].hit_mc.enabled = true;
  17.    navMovDown_mc.buttons_mc[SprevName].hit_mc.colorTo(0,0.3,"easeOutSine");
  18.    navMovDown_mc.buttons_mc[SprevName].name_txt.colorTo(16770048,0.3,"easeOutSine");
  19.    navMovDown_mc.buttons_mc[SprevName].arrow_txt.colorTo(16777215,0.3,"easeOutSine");
  20.    navMovDown_mc.buttons_mc[SprevName].loadBar_mc.tween("_width",0,0.3,"easeInSine");
  21.    SprevName = SloaderName;
  22. }
  23. function LoadSubMovie(node)
  24. {
  25.    navMovDown_mc.gotoAndStop(1);
  26.    b = 0;
  27.    while(b < imageTotal)
  28.    {
  29.       imageTotal = content_xml.firstChild.childNodes[3].childNodes[node].childNodes.length;
  30.       btnRoll = content_xml.firstChild.childNodes[3].childNodes[node].childNodes[b].attributes.ref;
  31.       btnName = content_xml.firstChild.childNodes[3].childNodes[node].childNodes[b].firstChild.nodeValue;
  32.       if(b == 0)
  33.       {
  34.          var _loc1_ = "button" + b + "_mc";
  35.          navMovDown_mc.buttons_mc.attachMovie("buttonMovieDL_mc",_loc1_,b);
  36.          navMovDown_mc.buttons_mc[_loc1_]._alpha = 0;
  37.          navMovDown_mc.buttons_mc[_loc1_].alphaTo(100,0.3,"easeOutSine");
  38.          navMovDown_mc.buttons_mc[_loc1_].name_txt.html = true;
  39.          navMovDown_mc.buttons_mc[_loc1_].name_txt.autoSize = "left";
  40.          navMovDown_mc.buttons_mc[_loc1_].name_txt.wordWrap = true;
  41.          navMovDown_mc.buttons_mc[_loc1_].name_txt.htmlText = btnName;
  42.          navMovDown_mc.buttons_mc[_loc1_].HRLink = btnRoll;
  43.          navMovDown_mc.buttons_mc[_loc1_].PLink = btnRoll;
  44.          navMovDown_mc.buttons_mc[_loc1_].PNum = b;
  45.       }
  46.       else
  47.       {
  48.          _loc1_ = "button" + b + "_mc";
  49.          navMovDown_mc.buttons_mc.attachMovie("buttonMovieDL_mc",_loc1_,b);
  50.          navMovDown_mc.buttons_mc[_loc1_]._alpha = 0;
  51.          navMovDown_mc.buttons_mc[_loc1_].alphaTo(100,0.3,"easeOutSine");
  52.          var _loc3_ = Math.round(navMovDown_mc.buttons_mc._height);
  53.          var _loc4_ = Bspacing;
  54.          navMovDown_mc.buttons_mc[_loc1_].name_txt.autoSize = "left";
  55.          navMovDown_mc.buttons_mc[_loc1_].name_txt.wordWrap = true;
  56.          navMovDown_mc.buttons_mc[_loc1_].name_txt.html = true;
  57.          navMovDown_mc.buttons_mc[_loc1_].name_txt.htmlText = btnName;
  58.          navMovDown_mc.buttons_mc[_loc1_]._y = _loc4_ + _loc3_;
  59.          navMovDown_mc.buttons_mc[_loc1_].HRLink = btnRoll;
  60.          navMovDown_mc.buttons_mc[_loc1_].PLink = btnRoll;
  61.          navMovDown_mc.buttons_mc[_loc1_].PNum = b;
  62.       }
  63.       if(b == imageTotal - 1)
  64.       {
  65.          if(navMovDown_mc.buttons_mc._height > 115)
  66.          {
  67.             navMovDown_mc.gotoAndStop(2);
  68.          }
  69.       }
  70.       b++;
  71.    }
  72. }
  73. stop();
  74. nodeCount_var = 3;
  75. imageCharSub_mc.alphaTo(0,0.3,"easeInQuad",0.6);
  76. imageCharSub_mc.colorTo(16777215,0.3,"easeInQuad",0.4);
  77. imageCharMain_mc.alphaTo(0,0.3,"easeInQuad",0.4);
  78. imageCharMain_mc.colorTo(16777215,0.3,"easeInQuad",0.2);
  79. imageLogoMain_mc.alphaTo(0,0.3,"easeInQuad",0.2);
  80. imageLogoMain_mc.colorTo(16777215,0.3,"easeInQuad");
  81. middle_mc.tween("_width",197,0,"easeInQuad");
  82. movieTitleDL_mc._alpha = 0;
  83. imageLogoSub_mc.alphaTo(0,0.2,"easeOutSine");
  84. loadBackBlack_mc.alphaTo(80,0,"easeOutSine");
  85. loadIntoMe_mc.alphaTo(0,0,"easeOutSine");
  86. var Bspacing = 1;
  87. b = 0;
  88. while(b < imageTotal)
  89. {
  90.    imageTotal = content_xml.firstChild.childNodes[3].childNodes.length;
  91.    moviePreview = content_xml.firstChild.childNodes[3].childNodes[b].attributes.preview;
  92.    btnName = content_xml.firstChild.childNodes[3].childNodes[b].attributes.title;
  93.    if(b == 0)
  94.    {
  95.       var butName = "button" + b + "_mc";
  96.       navMovList_mc.buttons_mc.attachMovie("buttonMovie",butName,b);
  97.       navMovList_mc.buttons_mc[butName]._alpha = 0;
  98.       navMovList_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
  99.       navMovList_mc.buttons_mc[butName].name_txt.html = true;
  100.       navMovList_mc.buttons_mc[butName].name_txt.autoSize = "left";
  101.       navMovList_mc.buttons_mc[butName].name_txt.wordWrap = true;
  102.       navMovList_mc.buttons_mc[butName].name_txt.htmlText = btnName;
  103.       navMovList_mc.buttons_mc[butName].HRLink = btnRoll;
  104.       navMovList_mc.buttons_mc[butName].PLink = moviePreview;
  105.       navMovList_mc.buttons_mc[butName].PNum = b;
  106.    }
  107.    else
  108.    {
  109.       var butName = "button" + b + "_mc";
  110.       navMovList_mc.buttons_mc.attachMovie("buttonMovie",butName,b);
  111.       navMovList_mc.buttons_mc[butName]._alpha = 0;
  112.       navMovList_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
  113.       var buttonsHeight = Math.round(navMovList_mc.buttons_mc._height);
  114.       var y = Bspacing;
  115.       navMovList_mc.buttons_mc[butName].name_txt.autoSize = "left";
  116.       navMovList_mc.buttons_mc[butName].name_txt.wordWrap = true;
  117.       navMovList_mc.buttons_mc[butName].name_txt.html = true;
  118.       navMovList_mc.buttons_mc[butName].name_txt.htmlText = btnName;
  119.       navMovList_mc.buttons_mc[butName]._y = y + buttonsHeight;
  120.       navMovList_mc.buttons_mc[butName].HRLink = btnRoll;
  121.       navMovList_mc.buttons_mc[butName].PLink = moviePreview;
  122.       navMovList_mc.buttons_mc[butName].PNum = b;
  123.    }
  124.    if(b == imageTotal - 1)
  125.    {
  126.       if(navMovList_mc.buttons_mc._height > 115)
  127.       {
  128.          navMovList_mc.gotoAndStop(2);
  129.       }
  130.    }
  131.    b++;
  132. }
  133.